﻿using com.nm.Attributes;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace VerticaAPI.model
{
    public class DwCZPJudgePeriodModel
    {
        /// <summary>
        /// 生命周期区间
        /// </summary>
        public class LifeCycleInfo {
            [ParamDescription("生命同期天数")]
            public int LifeDays { get; set; }
            [ParamDescription("区间名称")]
            public string PeriodName { get; set; }
            [ParamDescription("开始天数")]
            public int BeginDay { get; set; } 
            [ParamDescription("结束天数")]
            public int EndDay { get; set; }
            [ParamDescription("爆畅滞平区间")]
            public IList<CZPJudgePeriod> CZPJudgePeriodList { get; set; }
        }

        /// <summary>
        /// 爆畅滞平区间
        /// </summary>
        public class CZPJudgePeriod
        {
            [ParamDescription("类型")]
            public string SaleFlag { get; set; }
            [ParamDescription("开始值")]
            public int BeginValue { get; set; }
            [ParamDescription("结束值")]
            public int EndValue { get; set; }
            [ParamDescription("排序ID")]
            public int SortId { get; set; }
        }

        public class ModifyLifeCycle
        {
            [ParamDescription("生命同期天数")]
            public string LifeDays { get; set; }
            [ParamDescription("周期设置集合")]
            public IList<LifeCycleInfo> LifeCycleInfo { get; set; }
        }

        public class ChartModel
        {
            [ParamDescription("爆畅滞平类型名称")]
            public string BCZPTypeName { get; set; }
            [ParamDescription("数量")]
            public long Count { get; set; }
        }
    }
}
